﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenTK.Graphics;
using System.Drawing;

namespace SimpleModeler.Graphics
{
    /// <summary>
    /// Repräsentiert einen Kegel
    /// </summary>
    [Serializable()]
    public class Cone : Cylinder
    {
        #region Constructors
        /// <summary>
        /// Konstruktor f+r das Klonen
        /// </summary>
        /// <param name="id">ID des neuen Objektes</param>
        public Cone(ID id) : base(id) {  }
        /// <summary>
        /// Konstruktor
        /// </summary>
        public Cone() : base() { this.Top = 0; }
        #endregion // Constructors


        #region Methods
        /// <summary>
        /// Erstellt eine Kopie des Objektes
        /// </summary>
        /// <returns>Kopie des Objektes</returns>
        public override object Clone()
        {
            Cone c = new Cone(this.ID);
            SceneObject so = c as SceneObject;
            base.CloneParameters(ref so);
            return c;
        }
        #endregion // Methods
    }
}
